/* 根据fid删除 */
function DelFeature({ fid, service, Layer }) {
  var deleteService = new Zondy.Service.EditDocFeature(
    service.name,
    service.layerId,
    {
      ip: 'localhost',
      port: '6163', //访问IGServer的端口号，.net版为6163，Java版为8089
    }
  )
  deleteService.deletes(fid, onSuccess(Layer))
}
//删除点要素回调函数
function onSuccess(Layer) {
  return function (result) {
    if (result) {
      alert('删除点要素成功！')
      Layer.refresh()
    } else {
      alert('删除点要素失败！')
    }
  }
}
